package com.two.common.util;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.two.common.entity.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class GetToken {
    @ApiModelProperty("用户id")
    @TableId(value = "userid", type = IdType.AUTO)
    private Integer userid;

    @ApiModelProperty("用户账号")
    private String username;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("用户昵称")
    private String usermonicker;

    @ApiModelProperty("所属角色")
    private Integer roleid;

    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("用户电话")
    private String phone;

    @ApiModelProperty("盐")
    private String salt;
    @ApiModelProperty("所属角色名")
    private String rolename;


    @ApiModelProperty("头像")
    private String url;
}
